package com.lock;

import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAccessor;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/2/26  9:56
 * 描述:
 */
public class TestReentLock {

    public static void main(String[] args) {

        ReentrantLock reentrantLock=new ReentrantLock();

        Thread t1=new Thread(new TestLockRunable(reentrantLock),"A");
        Thread t2=new Thread(new TestLockRunable(reentrantLock),"B");

        t1.start();
        t2.start();


    }

}
